Range

Function

This API is used to get parameter range for Channel > Protocol Manage page.

Note:

The Range provides reference information for client UI input limits and API request limits. When sending Get and Set requests, the parameters must be strictly limited according to the Range, otherwise the request may be rejected by the device.

Request Message

None.

Sample:

POST /API/ChannelConfig/ProtocolManage/Range HTTP/1.1
To be added

Response Message

Parameter Description

Table 1

ParameterRangeTypeDescription
protocol_infoJSON ObjectJSON show as follow Table 2

Table 2

ParameterRangeTypeDescription
protocol1Json ObjectJSON show as follow Table 3
Json Object
protocol16Json Object

Table 3

ParameterRangeTypeDescription
protocol_nameMax length: 15bytestring
custom_streamJson arrayJSON show as follow Table 4

Table 4

ParameterRangeTypeDescription
stream_name“Mainstream”
“Substream”
string
enableboolThe Substream is available only when the code stream is enabled.
type“Rtsp”string
port1-65535int
source_pathMax length: 119bytestring

Tips:

The response message of the Range request may not contain all the fields in the above table, and the fields not included indicate that the device does not support this parameter configuration.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
To be added.

Error Code

See Response Messages Body and Common error_code for more information.